package com.example.schooljava.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author LDH
 * @since 2022/08/22
 */
@Data
@TableName("role_route")
@ApiModel(value = "身份路由", description = "每个身份对应的路由")
@JsonIgnoreProperties(value = {"create_time", "update_time"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RoleRoute implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 身份id
     */
    @ApiModelProperty("身份id")
    private Long roleid;

    /**
     * 路由id
     */
    @ApiModelProperty("路由id")
    private Long routeid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Guangzhou")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime create_time;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Guangzhou")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime update_time;


}
